const listData = [];

for (let i = 0; i < 100; i++) {
  listData.push({
    _id: "q" + (i + 1),
    title: "问卷" + (i + 1),
    isPublished: i % 2 == 0 ? true : false,
    isStar: i % 5 == 0 ? true : false,
    answerCount: Math.random().toString().slice(-3),
    createdAt: `${random(1, 12)}月${random(1, 30)}日 ${random(1, 24)}:${random(
      1,
      60
    )}`,
    isDelete: i % 2 ? true : false,
  });
}
function random(min, max) {
  return Math.floor(Math.random() * max) + min;
}
module.exports = {
  listData,
};
